package com.rd.student.jike.class2.lihongming.week724_730.Day728.Serial;

import java.io.Serializable;

/**
 * @Auther:Heinrich
 * @Date:2023/7/28-07-28-15:46
 * @Description:c230728.Serial
 * @version:1.0
 */
public class Person implements Serializable {

    String name;

    int age;

    Health health;
    public Person(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public Person(String name, int age, Health health) {
        this.name = name;
        this.age = age;
        this.health = health;
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", health=" + health +
                '}';
    }
}
